//
//  MYShopSearchScreenSpecificationsCell.swift
//  MuYing
//
//  Created by tbb on 2019/7/26.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYShopSearchScreenSpecificationsCell: UICollectionViewCell {
    
    @objc var isSelectedCell = false {
        didSet {
            if self.isSelectedCell {
                self.titleLb.textColor = .white;
                self.contentView.backgroundColor = appThemeColor;
            }else{
                self.contentView.backgroundColor = UIColorFromHex(rgbValue: 0x000000).withAlphaComponent(0.03);
                self.titleLb.textColor = UIColorFromHex(rgbValue: 0x686868);
            }
        }
    }

    
    @objc @IBOutlet weak var titleLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        self.contentView.layer.cornerRadius = 4;
        self.contentView.clipsToBounds = true;
//        self.contentView.backgroundColor = UIColorFromHex(rgbValue: 0x000000).withAlphaComponent(0.03);
    }

}
